package com.cy.lib.util;

import android.widget.TextView;

/**
 * @author CY
 * @title
 * @date 2015/7/21
 * @qq 568305883
 * @email tmxdyf@163.com
 */
public class TextViewUtils {
    /**
     * 获取文本
     *
     * @param tv
     * @return
     */
    public static String getText(TextView tv) {
        if (tv != null) {
            return tv.getText().toString().trim();
        }
        return null;
    }

    public static boolean isEmpty(TextView tv) {
        return !(tv != null && !tv.getText().toString().trim().isEmpty());
    }
}
